<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<%@ page import="org.codehaus.groovy.grails.commons.ConfigurationHolder" %>

<html>
    <head>
        <title><g:layoutTitle/></title>
        
        <link rel="stylesheet" href="${resource(dir:'css',file:'application.css')}" />
        <link rel="stylesheet" href="${resource(dir:'css/jqueryui',file:'jquery-ui.css')}" />
        <link rel="stylesheet" href="${resource(dir:'css/lightbox2',file:'jquery.lightbox-0.5.css')}" />
        
        <link rel="shortcut icon" href="${resource(dir:'images',file:'imageTitle.png')}" type="image/x-icon" />

        <g:javascript library="prototype"/>
        <g:javascript library="jquery"/>
        <g:javascript> var $j = jQuery.noConflict();</g:javascript>
        <g:javascript library="jqueryui/jquery-ui.min"/>
        <g:javascript library="lightbox2/jquery.lightbox-0.5.min"/>
   		<resource:richTextEditor type="advanced"/>
   		<resource:rating />
   		
   		
        <g:javascript library="application" />
        
        <g:layoutHead/>
    </head>
    
    <body>
    	<div id="wrapper">    	
	    	<g:hiddenField name="action" value="${actionName}"/>
	        <g:hiddenField name="controller" value="${controllerName}"/>
	        <g:hiddenField name="fromId" value="${fromId}"/>
	        
	        <my:header controller="${controllerName}">
	        	<img src="${resource(dir:'images',file:'drawYourDestiny.png')}" alt="${message(code:'default.title')}"/>
	        </my:header>
	        
	        <div id="page" class="rounded-corners">
	        	<my:navbarTop controller="${controllerName}" action="${actionName}" fromId="${fromId}" class="menuNav rounded-corners"></my:navbarTop>
	        	
	        	<g:if test="${flash.message}">
	            	<div class="message rounded-corners" ><g:message code="${flash.message}" args="${flash.args}"/></div>
	            </g:if>
		            
		        <div id="body" class="rounded-corners">
		        	<g:layoutBody />
		        	<div id="commentWrapper"></div>
		        </div>
		        
		        <my:navbarBottom class="menuNav rounded-corners">
		        	<b:bookmark title="${actionName +' '+ controllerName}" permalink="${ConfigurationHolder.config.grails.serverURL + request.forwardURI}" type="addtoany"/>
		        </my:navbarBottom>
	        </div>
	    </div>
    </body>
</html>